import request from '@/utils/request'

export default {
  repairList(params) {
    return request({
      url: '/v1/toolRepairList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/toolRepair/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/toolRepairUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/toolRepairAdd',
      method: 'post',
      data
    })
  },
  archives(id) {
    return request({
      url: `/v1/toolRepairArchive/${id}`,
      method: 'get'
    })
  },
  delete(id) {
    return request({
      url: `/v1/toolRepairDel/${id}`,
      method: 'get'
    })
  },
  append(data) {
    return request({
      url: '/v1/toolRepairAppend',
      method: 'post',
      data
    })
  },
  remove(data) {
    return request({
      url: '/v1/toolRepairRemove',
      method: 'post',
      data
    })
  },
  review(data) {
    return request({
      url: '/v1/toolRepairReview',
      method: 'post',
      data
    })
  }
}
